<%
/*
* Copyright 2001 MicroStrategy Incorporated. All rights reserved.
*/
%>
<%@ page contentType="text/html; charset=UTF-8" %>

<jsp:directive.page import="com.americanexpress.gnest.util.PropertyReader,java.io.*,java.util.*,javax.servlet.http.*,java.text.*;"/>
<html>
<head>
</head>
<body>

<%
if(session != null )
{
 session.invalidate();
 //System.out.println("If session is not invalidated then : session Value = "+(String)session.getAttribute("ECNId"));
}
StringBuffer ssoLogoutURL = new StringBuffer();
//System.out.println("SSO LOGOUT URL >>>>>>>> 1");
String protocolScheme = request.getScheme();
ssoLogoutURL.append(protocolScheme).append("://");
//System.out.println("SSO LOGOUT URL >>>>>>>> 2");
String ssoDomain = com.americanexpress.gnest.util.PropertyReader.getProperty("logout","ssoDomain");
//System.out.println("SSO LOGOUT URL >>>>>>>> 3");
ssoLogoutURL.append(ssoDomain);
String ssoStaticURL="/SSOI/request?request_type=un_logoff&SSOURL=";
ssoLogoutURL.append(ssoStaticURL);
String gmisAppServer=request.getServerName();
//System.out.println("SSO LOGOUT URL >>>>>>>> 4");
ssoLogoutURL.append(protocolScheme).append("://").append(gmisAppServer);
String gmisStaticURL="/giid/servlet/mstrWeb";
//System.out.println("SSO LOGOUT URL >>>>>>>> 5");
ssoLogoutURL.append(gmisStaticURL);

System.out.println("SSO LOGOUT URL >>>>>>>> "+ssoLogoutURL.toString());
%>
<%
response.sendRedirect(ssoLogoutURL.toString());
%>

</body>
</html>
